
        onload = function () {
            requestAnimationFrame(gettime)
        }

        function gettime() {
            setTimeout(function () {
                requestAnimationFrame(gettime)
            }, 1000 / 2)
            var d = new Date();
            var year = d.getFullYear()  //获取年
            var month = d.getMonth() + 1;  //获取月，从 Date 对象返回月份 (0 ~ 11)，故在此处+1
            var day = d.getDay()    //获取日
            var days = d.getDate() //获取日期
            var hour = d.getHours()   //获取小时
            var minute = d.getMinutes()  //获取分钟
            var second = d.getSeconds()   //获取秒

            if (month < 10) month = "0" + month
            if (days < 10) days = "0" + days
            if (hour < 10) hour = "0" + hour
            if (minute < 10) minute = "0" + minute
            if (second < 10) second = "0" + second


            var Tools = document.getElementById("time")
            var da = year + " 年 " + month + " 月 " + days + " 日 " + hour + " : " + minute + " :" + second
            Tools.innerHTML = da
        }

       
       
        